package com.yxinsur.imc.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yxinsur.imc.common.annotation.Excel;
import com.yxinsur.imc.common.core.domain.BaseImcEntity;

/**
 * 代理人身份角色码对象 imc_role
 *
 * @author imc
 * @date 2021-04-13
 */
public class ImcRole extends BaseImcEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 代理人角色名称，每个租户只能有一个同名角色 */
    @Excel(name = "代理人角色名称，每个租户只能有一个同名角色")
    private String brokerRoleName;

    /** 修改人 */
    @Excel(name = "修改人")
    private String updateId;

    /** $column.columnComment */
    @Excel(name = "修改人")
    private String isDeleted;

    /** $column.columnComment */
    @Excel(name = "修改人")
    private String createId;

    /** 租户id,一个租户id唯一对一个机构id（默认机构id为根节点id暨法人机构） */
    @Excel(name = "租户id,一个租户id唯一对一个机构id", readConverterExp = "默=认机构id为根节点id暨法人机构")
    private Long tenantId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setBrokerRoleName(String brokerRoleName)
    {
        this.brokerRoleName = brokerRoleName;
    }

    public String getBrokerRoleName()
    {
        return brokerRoleName;
    }
    public void setUpdateId(String updateId)
    {
        this.updateId = updateId;
    }

    public String getUpdateId()
    {
        return updateId;
    }
    public void setIsDeleted(String isDeleted)
    {
        this.isDeleted = isDeleted;
    }

    public String getIsDeleted()
    {
        return isDeleted;
    }
    public void setCreateId(String createId)
    {
        this.createId = createId;
    }

    public String getCreateId()
    {
        return createId;
    }
    public void setTenantId(Long tenantId)
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId()
    {
        return tenantId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("brokerRoleName", getBrokerRoleName())
            .append("createTime", getCreateTime())
            .append("updateId", getUpdateId())
            .append("updateTime", getUpdateTime())
            .append("isDeleted", getIsDeleted())
            .append("createId", getCreateId())
            .append("tenantId", getTenantId())
            .toString();
    }
}
